#ifndef FRIEND_H
#define FRIEND_H

#include <QObject>
#include <QString>
#include "user.h"
#include "message.h"

class Friend : public User
{
public:
    explicit Friend();
    explicit Friend(QString wxid, QString name, QString image, bool mute, QString time, int count, QList<Message> messages);

    void mute(bool mute);
    bool mute();

    void time(QString time);
    QString time();

    void count(int count);
    int count();

    void messages(QList<Message> messages);
    QList<Message> messages();

protected:
    bool _mute;
    QString _time;
    int _count;
    QList<Message> _messages;
};
Q_DECLARE_METATYPE(Friend)
Q_DECLARE_METATYPE(Friend*)
#endif // FRIEND_H
